# $Id: PKGBUILD 90045 2013-05-06 19:37:46Z foutrelis $
# Maintainer: Giovanni Scafora <giovanni@archlinux.org>
# Contributor: Maxwell Pray a.k.a. Synthead <synthead@gmail.com>

pkgname=guvcview
pkgver=1.7.0
pkgrel=2
pkgdesc="A video viewer and capturer for the linux uvc driver"
arch=('i686' 'x86_64')
url="http://guvcview.sourceforge.net/"
license=('GPL')
depends=('portaudio' 'ffmpeg' 'gtk3')
makedepends=('pkg-config' 'intltool')
optdepends=('pulseaudio: for PulseAudio support')
options=('!docs')
source=("http://downloads.sourceforge.net/project/${pkgname}/source/${pkgname}-src-${pkgver}.tar.gz")
md5sums=('fe141fe2fe2a16df69f7866c27334a56')

build() {
  cd "${srcdir}/${pkgname}-src-${pkgver}"

  ./configure --prefix=/usr \
              --disable-debian-menu
  make
}

package() {
  cd "${srcdir}/${pkgname}-src-${pkgver}"

  make DESTDIR="${pkgdir}" install
}
